<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: grid;
            width: 600px;
            height: 400px;
            background-color: red;
            grid-template-columns: repeat(3,100px);
            grid-template-rows: repeat(2,100px);
            gap: 10px
        }
        .box div {
            background-color: pink;
        }
        .item1 {
            /* grid-column-start:1;
            grid-column-end:3; */
            grid-column: 1/3;

        }
        .item2 {
            /* grid-column-start: 3;
            grid-column-end: 4;
            grid-row-start: 1;
            grid-row-end: 3; */
            grid-column: 3/4;
            grid-row: 1/3;
        }
        /* grid-column-start 属性：左边框所在的垂直网格线
        grid-column-end 属性：右边框所在的垂直网格线
        grid-row-start 属性：上边框所在的水平网格线
        grid-row-end 属性：下边框所在的水平网格线 */
    </style>
</head>
<body>
    <div class="box">
        <div class="item1">1</div>
        <div class="item2">2</div>
        <div class="item3">3</div>
        <div class="item4">4</div>
    </div>
</body>
</html>